#ifndef __WithScreen_h__
#define __WithScreen_h__


typedef union   
{
	struct
	{
		unsigned bRx:1;
	};
	unsigned char AllFlag;
} _WithScreen_Flags;        // general flags


//#define WithScreen_TxByteWithVerify(x) Uart1_VerifySumAddTxByte(x)
#define WithScreen_TxByte(x) Uart2_PutChar(x)



#define pWithScreenData 8
#define pWithScreen_CommandIndex 5


#define MAX_WithScreen_RX 10

_WithScreen_Flags WithScreen_Flags;
unsigned char WithScreen_RxList[MAX_WithScreen_RX];
unsigned int WithScreen_RxCount;
unsigned int WithScreen_NoRxTick;


void WithScreen_Init(void);
void WithScreen_EndProcCommand(void);
void WithScreen_ProcRx(unsigned char rx);
void WithScreen_SendData(unsigned char addr,unsigned char value);
void WithScreen_CommandProc(void);
#endif


